home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 1.iso
/
dist
/
fw_curl.idb
/
usr
/
freeware
/
bin
/
curl-config.z
/
curl-config
Wrap
Text File
|
2002-07-08
|
3KB
|
119 lines
#! /bin/sh
#
# The idea to this kind of setup info script was stolen from numerous
# other packages, such as neon, libxml and gnome.
#
# $Id: curl-config.in,v 1.13 2002/06/11 11:13:29 bagder Exp $
#
prefix=${ROOT}/usr/freeware
exec_prefix=${prefix}
includedir=${prefix}/include
usage()
{
cat <<EOF
Usage: curl-config [OPTION]
Available values for OPTION include:
--cc compiler
--cflags pre-processor and compiler flags
--feature newline separated list of enabled features
--help display this help and exit
--libs library linking information
--prefix curl install prefix
--version output version information
--vernum output the version information as a number (hexadecimal)
EOF
exit $1
}
if test $# -eq 0; then
usage 1
fi
while test $# -gt 0; do
case "$1" in
# this deals with options in the style
# --option=value and extracts the value part
# [not currently used]
-*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) value= ;;
esac
case "$1" in
--cc)
echo sgifwcompile -e -q -nostdinc -I. -I${ROOT}/usr/freeware/include -I${ROOT}/usr/include -O3 -OPT:Olimit=0:space=ON -DEBUG:optimize_space=on -TENV:X=1 -CG:unique_exit=on -OPT:IEEE_arithmetic=1:roundoff=0:wrap_around_unsafe_opt=off -n32 -mips3 -nostdlib -L${ROOT}/usr/freeware/${ABILIB-lib32} -L${ROOT}/usr/lib32 -woff 1009,1014,1107,1110,1116,1164,1185,1188,1204,1230,1233 -Wl,-woff,85,-woff,84 -rpath ${ROOT}/usr/freeware/${ABILIB-lib32} -- /hosts/babylon.engr/usr/dist/new_toolroots/6.5/products/freeware/latest/ptoolroot/usr/bin/cc
;;
--prefix)
echo $prefix
;;
--feature)
if test "" = "1"; then
echo "SSL"
fi
if test "" = "1"; then
echo "KRB4"
fi
if test "" = "1"; then
echo "IPv6"
fi
if test "" = "1"; then
echo "HTTP-disabled"
fi
if test "" = "1"; then
echo "FTP-disabled"
fi
if test "" = "1"; then
echo "GOPHER-disabled"
fi
if test "" = "1"; then
echo "FILE-disabled"
fi
if test "" = "1"; then
echo "TELNET-disabled"
fi
if test "" = "1"; then
echo "LDAP-disabled"
fi
if test "" = "1"; then
echo "DICT-disabled"
fi
;;
--version)
echo libcurl 7.9.8
exit 0
;;
--vernum)
echo 070908
exit 0
;;
--help)
usage 0
;;
--cflags)
echo -I${prefix}/include
;;
--libs)
echo -L${ROOT}/usr/freeware/${ABILIB-lib32} -lcurl
;;
*)
echo "unknown option: $1"
usage
exit 1
;;
esac
shift
done
exit 0